<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="#">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('品名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" readonly="readonly" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-model" class="form-control" readonly="readonly" name="row[model]" type="text" value="{$row.model|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" readonly="readonly" name="row[price]" type="text" value="{$row.price|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-count" class="form-control" readonly="readonly" name="row[count]" type="text" value="{$row.count|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('购入时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time" class="form-control" readonly="readonly" name="row[time]" type="text" value="{$row.time|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('注册证号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-register" class="form-control" readonly="readonly" name="row[register]" type="text" value="{$row.register|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产单位')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-production" class="form-control" readonly="readonly" name="row[production]" type="text" value="{$row.production|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('存放地点')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deposit" class="form-control" readonly="readonly" name="row[deposit]" type="text" value="{$row.deposit|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('供应商')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier" class="form-control" readonly="readonly" name="row[supplier]" type="text" value="{$row.supplier|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="msg" disabled data-rule="required" name="row[msg]" rows="10" cols="67">{$row.msg|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<div class="input-group">-->
                <input id="c-img"  data-rule="" class="form-control" readonly="readonly" name="row[image]" type="text" value="{$row.image|htmlentities}">
            <!--</div>-->
            <ul class="row list-inline plupload-preview" id="p-img">
                {if condition="$row.image != '' "}
                {foreach $row.images as $index=>$vo}
                <li class="col-xs-3">
                    <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail">
                        <img src="{$vo}" onerror="this.src='/QjaGeuOTbZ.php/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
                {/if}
            </ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('发票')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<div class="input-group">-->
            <input id="c-invoice"  data-rule="" class="form-control" readonly="readonly" name="row[invoice]" type="text" value="{$row.invoice|htmlentities}">
            <!--</div>-->
            <ul class="row list-inline plupload-preview" id="p-invoice">
                {if condition="$row.invoice != '' "}
                {foreach $row.invoices as $index=>$vo}
                <li class="col-xs-3">
                    <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail">
                        <img src="{$vo}" onerror="this.src='/QjaGeuOTbZ.php/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
                {/if}
            </ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('说明书')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<div class="input-group">-->
            <input id="c-specification"  data-rule="" class="form-control" readonly="readonly" name="row[specification]" type="text" value="{$row.specification|htmlentities}">
            <!--</div>-->
            <ul class="row list-inline plupload-preview" id="p-specification">
                {if condition="$row.specification != '' "}
                {foreach $row.specifications as $index=>$vo}
                <li class="col-xs-3">
                    <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail">
                        <img src="{$vo}" onerror="this.src='/QjaGeuOTbZ.php/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
                {/if}
            </ul>
        </div>
    </div>


    <div class="hide layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
        </div>
    </div>
</form>
